﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Globalization;
using gChartSharp;

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
            LineChart lineChart = new LineChart();
            lineChart.Data.DataSets.Add(new float[] { 1, 2, 4, 8, 16, 32, 64 });
            lineChart.Legend.DataSetLabels.Add("Label 1");
            lineChart.Title.Text = "Title";
            lineChart.LineStyles.Styles.Add(new LineStyle(3));
            lineChart.GridLines = new GridLinesParam(10, 10, 1F, 0F);
            //lineChart.LinearGradientFill = new LinearGradientFillParam(LinearGradientFillType.bg, 0, Color.Red, 0.25, Color.Blue, 0.75); 
            //lineChart.RangeMarkers.Markers.Add(new RangeMarker(RangeMarkerType.Horizontal, Color.Blue, 0.25F, .5F));
            lineChart.ShapeMarkers.Markers.Add(new ShapeMarker(MarkerType.Text, Color.Black, 0, 2, 20, "Blarg"));
            lineChart.SolidFill = new SolidFillParam(SolidFillType.c, Color.SeaShell);
            lineChart.AxisTypes.Axes.Add(AxisLabelType.x);
            System.Diagnostics.Process.Start(lineChart.GetURL());

            //ScatterPlotChart sp = new ScatterPlotChart(600, 400);
            //sp.Data.DataSets.Add(new float[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 20 });
            //sp.Data.DataSets.Add(new float[] { 73, 68, 42, 99, 24, 74, 74, 24, 34, 76 });
            //sp.DataScaleParam.DataScales.Add(new DataScale(0, 10));
            //sp.DataScaleParam.DataScales.Add(new DataScale(0, 100));
            //sp.AxisLabelParam.Labels.Add(0, new string[] { "one", "Two", "three" });
            //sp.AxisTypeParam.Axes.Add(AxisLabelType.x);

            //System.Diagnostics.Process.Start(sp.GetURL());

            //MapChart map = new MapChart(440, 220, GeographicalArea.usa);
            //map.MapColor.BackgroundRegions = Color.LightGray;
            //map.MapColor.GradientColors.AddRange(new List<Color>() { Color.LightGreen, Color.Green, Color.DarkGreen });
            //map.SubRegions.US_States.AddRange(new List<US_State>() { US_State.NY, US_State.OR, US_State.MI });
            //map.Data.DataSets.Add(new float[] { 1, 30, 40 });
            //map.Data.EncodingType = EncodingType.Text;
            //System.Diagnostics.Process.Start(map.GetURL());
        }
    }
}
